import request from '@/utils/request'
const wechat_api='/api/ucenter/wx'
const wechat_order_api=`/api/order/weixin`
export default{
    //获取微信登录的参数
    getLoginParam(){
        return request({
            url:`${wechat_api}/getParams`,
            method:'get'
        })
    },

    //生成二维码的链接
    createNative(orderId){
        return request({
            url:`${wechat_order_api}/createNative/${orderId}`,
            method:'get'
        })
    },

    //查询支付状态
    queryPayStatus(orderId){
        return request({
            url: `${wechat_order_api}/queryPayStatus/${orderId}`,
            method: 'get'
        })
    },

    //取消预约
    cancelOrder(orderId){
        return request({
            url:`${wechat_order_api}/auth/cancelOrder/${orderId}`,
            method:'get'
        })
    }
}